﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ASPItalia.ModelVirtualCasting.Web.Models.ProfileModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<% if (string.IsNullOrEmpty(this.Model.Person.NickName)) { %>
    Profilo non trovato
    <%}
    else
    { %>
    Profilo di <%: this.Model.Person.NickName%> 
    <% } %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><% if (string.IsNullOrEmpty(this.Model.Person.NickName))
           { %>
    Profilo non trovato
    <%}
    else
    { %>
    Profilo di <%: this.Model.Person.NickName%> 
    <% } %></h2>
    
    <% if (!string.IsNullOrEmpty(this.TempData["Message"] as string)) { %>
    <%: this.TempData["Message"] %>
    <%} %>

    <% if (!string.IsNullOrEmpty(this.Model.Person.NickName)) { %>
        <% this.Html.RenderPartial("ShowPerson", this.Model.Person); %>
        <p><%= this.Html.ActionLink(
          "Modifica profilo...",
          "Edit", this.Model.EditControllerName,
          new { nickname = this.Model.Person.NickName }, null)%></p>
    <%} %>
        
</asp:Content>
